package com.xqboss.apps.vo.game.materialStrike;

import com.xqboss.apps.domain.game.GameMaterialStrikeRecord;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

/**
 * @author matao
 * @author 2024/1/10 11:59 PM
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class GameMaterialStrikeRecordVO extends GameMaterialStrikeRecord {

    private String avatarUrl;
    private String userName;
    private Long ts;
    private BigDecimal finalAmount;

    /**
     * 隐藏字段，不给前端看
     */
    public void hideField() {
        this.setId(null);
        this.setMergeNo(null);
        this.setRiskRate(null);
        this.setUserId(null);
        this.setCreateTime(null);
    }
}
